#ifndef __DLED_H__
#define __DLED_H__

/* LEDs port and pins definition */
#define LEDS_GPIO       (GPIOE)
#define LEDS_RCC_GPIO   (RCC_APB2Periph_GPIOE)
#define LED0_PIN        (GPIO_Pin_0)
#define LED1_PIN        (GPIO_Pin_1)
#define LED_GREEN_PIN   (LED0_PIN)
#define LED_RED_PIN     (LED1_PIN)

enum LedPinEnum
    {
    LED_GREEN = 0,
    LED_RED,
    } LedPinEnum;

enum LedModeEnum
    {
    LED_OFF = 0,
    LED_ON,
    LED_BLINK,
    LED_FLASH,
    } LedModeEnum;

/* LEDs configuraton function */
void LED_Configuration( void );

/* set selected pin with specific mode */
void LED_SetMode( enum LedPinEnum pin, enum LedModeEnum mode );

#endif // __DLED_H__